/**
 *  Copyright (c)  2011-2020 Panguso, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Panguso, 
 *  Inc. ("Confidential Information"). You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into with Panguso.
 */

package globalparameter;

import java.util.HashMap;
/**
 * 
 * @author dongzihe
 *
 */
public class PropertiesReader {
	private String dbConnection = "166.111.80.198";
	private String dbkeySpace = "processMining2";
	private String dbcolumnFamilymodel = "processModel";
	private String dbcolumnFamilyannotation = "processAnnotation";
	private String dbcolumnFamilyxes = "xes";
	private String dbcolumnFamilylogBody = "logBody";
	private String dbcolumnFamilylogHead = "logHead";
	private String dbcolumnFamilylogTokenizer = "logTokenizer";
	private String dbcolumnFamilyproduct = "product";
	private String dbcolumnFamilyversion = "logHeadVersion";
	private String dbcolumnFamilybusinessPattern = "businessPattern";
	private String dbcolumnFamilyaccount = "account";
	private String dbcolumnFamilyaccountGroup = "accountGroup";
	private String dbcolumnFamilycleanRule = "cleanRule";
	private String dbcolumnFamilynoiseRule = "noiseRule";
	private String dbcolumnFamilyactivityAbstractRule = "activityAbstractRule";
	private String dbcolumnFamilytraceFilterRule = "traceFilterRule";
	private String dbcolumnFamilyfullPattern = "fullPattern";
	private String dbcolumnFamilytreeFile = "treeFile";
	private String dbcolumnFamilyxesNameTable = "xesNameTable";

	private String xmlhead = "<?xml version=\"1.0\"encoding=\"UTF-8\"?>";
	private String hadoopnodes = "6";
	private HashMap<String, String> configurationstring = null;
public HashMap<String, String> getConfigurationstring() {
		return configurationstring;
	}
	public void setConfigurationstring(HashMap<String, String> configurationstring) {
		this.configurationstring = configurationstring;
	}
/**
 * 
 */
	public PropertiesReader() {
		configurationstring = new HashMap<String, String>();
		configurationstring.put("xml_head", xmlhead);
		configurationstring.put("dbConnection", dbConnection);
		configurationstring.put("db_keySpace", dbkeySpace);
		configurationstring.put("db_columnFamily_model", dbcolumnFamilymodel);
		configurationstring.put("db_columnFamily_annotation",
				dbcolumnFamilyannotation);
		configurationstring.put("db_columnFamily_xes", dbcolumnFamilyxes);
		configurationstring.put("db_columnFamily_logBody",
				dbcolumnFamilylogBody);

		configurationstring.put("db_columnFamily_logHead",
				dbcolumnFamilylogHead);
		configurationstring.put("db_columnFamily_logTokenizer",
				dbcolumnFamilylogTokenizer);
		configurationstring.put("db_columnFamily_product",
				dbcolumnFamilyproduct);
		configurationstring.put("db_columnFamily_version",
				dbcolumnFamilyversion);
		configurationstring.put("db_columnFamily_businessPattern",
				dbcolumnFamilybusinessPattern);
		configurationstring.put("db_columnFamily_account",
				dbcolumnFamilyaccount);
		configurationstring.put("db_columnFamily_accountGroup",
				dbcolumnFamilyaccountGroup);
		configurationstring.put("db_columnFamily_cleanRule",
				dbcolumnFamilycleanRule);
		configurationstring.put("db_columnFamily_noiseRule",
				dbcolumnFamilynoiseRule);
		configurationstring.put("db_columnFamily_activityAbstractRule",
				dbcolumnFamilyactivityAbstractRule);
		configurationstring.put("db_columnFamily_traceFilterRule",
				dbcolumnFamilytraceFilterRule);
		configurationstring.put("db_columnFamily_fullPattern",
				dbcolumnFamilyfullPattern);
		configurationstring.put("db_columnFamily_treeFile",
				dbcolumnFamilytreeFile);
		configurationstring.put("db_columnFamily_xesNameTable",
				dbcolumnFamilyxesNameTable);
		configurationstring.put("hadoopnodes", hadoopnodes);
	}
/**
 * 
 * @param key parameter
 * @return
 */
	public String getProperties(String key) {
		String value;
		value = configurationstring.get(key);
		return value;

	}
public String getDbConnection() {
	return dbConnection;
}
public void setDbConnection(String dbConnection) {
	this.dbConnection = dbConnection;
}
public String getDbkeySpace() {
	return dbkeySpace;
}
public void setDbkeySpace(String dbkeySpace) {
	this.dbkeySpace = dbkeySpace;
}
public String getDbcolumnFamilymodel() {
	return dbcolumnFamilymodel;
}
public void setDbcolumnFamilymodel(String dbcolumnFamilymodel) {
	this.dbcolumnFamilymodel = dbcolumnFamilymodel;
}
public String getDbcolumnFamilyxes() {
	return dbcolumnFamilyxes;
}
public void setDbcolumnFamilyxes(String dbcolumnFamilyxes) {
	this.dbcolumnFamilyxes = dbcolumnFamilyxes;
}
public String getDbcolumnFamilylogTokenizer() {
	return dbcolumnFamilylogTokenizer;
}
public void setDbcolumnFamilylogTokenizer(String dbcolumnFamilylogTokenizer) {
	this.dbcolumnFamilylogTokenizer = dbcolumnFamilylogTokenizer;
}
public String getDbcolumnFamilyproduct() {
	return dbcolumnFamilyproduct;
}
public void setDbcolumnFamilyproduct(String dbcolumnFamilyproduct) {
	this.dbcolumnFamilyproduct = dbcolumnFamilyproduct;
}
public String getDbcolumnFamilyversion() {
	return dbcolumnFamilyversion;
}
public void setDbcolumnFamilyversion(String dbcolumnFamilyversion) {
	this.dbcolumnFamilyversion = dbcolumnFamilyversion;
}
public String getDbcolumnFamilynoiseRule() {
	return dbcolumnFamilynoiseRule;
}
public void setDbcolumnFamilynoiseRule(String dbcolumnFamilynoiseRule) {
	this.dbcolumnFamilynoiseRule = dbcolumnFamilynoiseRule;
}
public String getDbcolumnFamilytraceFilterRule() {
	return dbcolumnFamilytraceFilterRule;
}
public void setDbcolumnFamilytraceFilterRule(
		String dbcolumnFamilytraceFilterRule) {
	this.dbcolumnFamilytraceFilterRule = dbcolumnFamilytraceFilterRule;
}
public String getDbcolumnFamilytreeFile() {
	return dbcolumnFamilytreeFile;
}
public void setDbcolumnFamilytreeFile(String dbcolumnFamilytreeFile) {
	this.dbcolumnFamilytreeFile = dbcolumnFamilytreeFile;
}
public String getDbcolumnFamilyxesNameTable() {
	return dbcolumnFamilyxesNameTable;
}
public void setDbcolumnFamilyxesNameTable(String dbcolumnFamilyxesNameTable) {
	this.dbcolumnFamilyxesNameTable = dbcolumnFamilyxesNameTable;
}
public String getXmlhead() {
	return xmlhead;
}
public void setXmlhead(String xmlhead) {
	this.xmlhead = xmlhead;
}
public String getHadoopnodes() {
	return hadoopnodes;
}
public void setHadoopnodes(String hadoopnodes) {
	this.hadoopnodes = hadoopnodes;
}
	
}
